<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title>个人信息-查看地址列表</title>
	<link rel="stylesheet" href="__PUBLIC__/Mobile/css/zhang.css">
	<script src="__PUBLIC__/Mobile/js/jquery-1.7.2.min.js"></script>
	<script src="__PUBLIC__/Mobile/Layer/layer.min.js"></script>
</head>

<body >
<section>
<!--选择地址-->
<div class="lm">
	<a href="javascript:history.back(-1);">
		<img src="__PUBLIC__/Mobile/images/return.png" style="height:22px; padding-left:2%; line-height:22px; width:6%; padding-top:2%;" class="left">
	</a>
    <span class="left size20">选择地址 </span>
</div>
<div class="Common">
	<volist name="result" id="vo">
		<a href="#" class="address"><!-- class="hover"  -->
	    	<span>
		        <p><b>{$vo.realname}</b><span>{$vo.mobile}</span></p>
		        <p><if condition="$vo['status'] eq 1">[默认]{$vo.prov}省{$vo.city}市{$vo.dist}{$vo.address}<else />{$vo.prov}省{$vo.city}市{$vo.dist}{$vo.address}</if></p>
	        </span>
	        <b><img src="__PUBLIC__/Mobile/images/edit2.png" class="edit change"  id="{$vo.id}"></b>
	    </a>
	</volist>
</div>
</section>
<a href="{:U('Mycenter/address_add')}" class="immediately2 size26" style="position:fixed; bottom:0; font-size:1.2em;">添加新地址</a>
<script>
	$(".address").click(function(){
		$(this).siblings().removeClass("hover").end().addClass ("hover");
	});
	
	$(".change").click(function(){
		var addressid =  $(this).attr("id");
		location.href = "{:U('Mycenter/change_address')}?addressid="+addressid;
	});
</script>
</body>
</html>
